package cc.ycws.core.service;

import cc.ycws.base.core.service.BaseService;
import cc.ycws.core.domain.CcCustomer;
import cc.ycws.core.dao.CcCustomerDao;
import cc.ycws.core.old.dao.UploadfileDao;
import cc.ycws.core.old.domain.Uploadfile;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 客户表 服务实现类
 * </p>
 *
 * @author tutu
 * @since 2018-05-01
 */
@Service
public class CcCustomerService extends BaseService<CcCustomerDao, CcCustomer> {

    @Autowired
    private UploadfileDao uploadfileDao;


    @Transactional
    public void copyDataWithInit() {
        List<Uploadfile> uploadfiles = uploadfileDao.selectList(null);
        uploadfiles.stream().forEach(uploadfile -> {
            CcCustomer ccCustomer = new CcCustomer();


        });

    }
}
